#ifndef VIDEOSENDER_H
#define VIDEOSENDER_H

#include <QObject>
#include <QImage>
#include <QUdpSocket>
#include <QByteArray>

typedef struct
{
    int packNum;
    int packTaken;
    char data[1024];
}ImagePackage;

class VideoSender : public QObject
{
    Q_OBJECT
public:
    explicit VideoSender(QString ip, quint16 port, QObject *parent = nullptr);

private:
    QUdpSocket *socket;
    QString ip;
    quint16 port;

public slots:
    void sendVideo(QByteArray);
    void closeCamera();

signals:

};

#endif // VIDEOSENDER_H
